package edu.sctu.practice.class01.wulixia.month09_wlx.test03;

/**
 * Created by wulixia on 2015/10/14.
 */
public class ChangeTime {
    public static void main(String[] args) {
        MyTime time = new MyTime(19,25,53);

        System.out.println("初始化时间为：" + time.isPlay() + "\n");

        System.out.println("增加时间：" + "\n");
        System.out.println("增加后的时间为：" + time.addHour(25) + "时" +
                time.addMinute(666) + "分" + time.addSecond(88) +"秒"  + "\n");

        System.out.println("减少时间：" + "\n");
        System.out.println("减少后的时间为：" + time.subHour(25) + "时" +
                time.subMinute(666) + "分" + time.subSecond(88) +"秒"  + "\n");
    }
}
